<!DOCTYPE html>
<html lang="en-US" dir="ltr">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Markdown Extension Examples | 我的个人博客网站</title>
    <meta name="description" content="我的个人博客网站">
    <meta name="generator" content="VitePress v1.5.0">
    <link rel="preload stylesheet" href="/assets/style.C36De06b.css" as="style">
    <link rel="preload stylesheet" href="/vp-icons.css" as="style">
    
    <script type="module" src="/assets/app.Bzk3WNGo.js"></script>
    <link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
    <link rel="modulepreload" href="/assets/chunks/theme.CYhVZ-T7.js">
    <link rel="modulepreload" href="/assets/chunks/framework.p2VkXzrt.js">
    <link rel="modulepreload" href="/assets/markdown-examples.md.CB--4lFV.lean.js">
    <script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
    <script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
  </head>
  <body>
    <div id="app"><div class="Layout" data-v-e212a6ea><!--[--><!--]--><!--[--><span tabindex="-1" data-v-7e9e640d></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-7e9e640d> Skip to content </a><!--]--><!----><header class="VPNav" data-v-e212a6ea data-v-32cf2f6e><div class="VPNavBar" data-v-32cf2f6e data-v-6b49a1dc><div class="wrapper" data-v-6b49a1dc><div class="container" data-v-6b49a1dc><div class="title" data-v-6b49a1dc><div class="VPNavBarTitle has-sidebar" data-v-6b49a1dc data-v-6e2a8b65><a class="title" href="/" data-v-6e2a8b65><!--[--><!--]--><!----><span data-v-6e2a8b65>我的个人博客网站</span><!--[--><!--]--></a></div></div><div class="content" data-v-6b49a1dc><div class="content-body" data-v-6b49a1dc><!--[--><!--]--><div class="VPNavBarSearch search" data-v-6b49a1dc><!----></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-6b49a1dc data-v-fe78f58d><span id="main-nav-aria-label" class="visually-hidden" data-v-fe78f58d> Main Navigation </span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/" tabindex="0" data-v-fe78f58d data-v-fe03ea0c><!--[--><span data-v-fe03ea0c>主页</span><!--]--></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink active" href="/markdown-examples.html" tabindex="0" data-v-fe78f58d data-v-fe03ea0c><!--[--><span data-v-fe03ea0c>博客</span><!--]--></a><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-6b49a1dc data-v-e14f98b3><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title aria-checked="false" data-v-e14f98b3 data-v-d973138a data-v-4d0ee2d0><span class="check" data-v-4d0ee2d0><span class="icon" data-v-4d0ee2d0><!--[--><span class="vpi-sun sun" data-v-d973138a></span><span class="vpi-moon moon" data-v-d973138a></span><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-6b49a1dc data-v-f7d655a8 data-v-da0c08c0><!--[--><a class="VPSocialLink no-icon" href="https://github.com/vuejs/vitepress" aria-label="github" target="_blank" rel="noopener" data-v-da0c08c0 data-v-35564b4b><span class="vpi-social-github"></span></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-6b49a1dc data-v-4857e471 data-v-7601f693><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-7601f693><span class="vpi-more-horizontal icon" data-v-7601f693></span></button><div class="menu" data-v-7601f693><div class="VPMenu" data-v-7601f693 data-v-c20e55ea><!----><!--[--><!--[--><!----><div class="group" data-v-4857e471><div class="item appearance" data-v-4857e471><p class="label" data-v-4857e471>Appearance</p><div class="appearance-action" data-v-4857e471><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title aria-checked="false" data-v-4857e471 data-v-d973138a data-v-4d0ee2d0><span class="check" data-v-4d0ee2d0><span class="icon" data-v-4d0ee2d0><!--[--><span class="vpi-sun sun" data-v-d973138a></span><span class="vpi-moon moon" data-v-d973138a></span><!--]--></span></span></button></div></div></div><div class="group" data-v-4857e471><div class="item social-links" data-v-4857e471><div class="VPSocialLinks social-links-list" data-v-4857e471 data-v-da0c08c0><!--[--><a class="VPSocialLink no-icon" href="https://github.com/vuejs/vitepress" aria-label="github" target="_blank" rel="noopener" data-v-da0c08c0 data-v-35564b4b><span class="vpi-social-github"></span></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-6b49a1dc data-v-dd61349a><span class="container" data-v-dd61349a><span class="top" data-v-dd61349a></span><span class="middle" data-v-dd61349a></span><span class="bottom" data-v-dd61349a></span></span></button></div></div></div></div><div class="divider" data-v-6b49a1dc><div class="divider-line" data-v-6b49a1dc></div></div></div><!----></header><div class="VPLocalNav has-sidebar empty" data-v-e212a6ea data-v-f35ddaf7><div class="container" data-v-f35ddaf7><button class="menu" aria-expanded="false" aria-controls="VPSidebarNav" data-v-f35ddaf7><span class="vpi-align-left menu-icon" data-v-f35ddaf7></span><span class="menu-text" data-v-f35ddaf7>Menu</span></button><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-f35ddaf7 data-v-be67c63c><button data-v-be67c63c>Return to top</button><!----></div></div></div><aside class="VPSidebar" data-v-e212a6ea data-v-7f1e9840><div class="curtain" data-v-7f1e9840></div><nav class="nav" id="VPSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1" data-v-7f1e9840><span class="visually-hidden" id="sidebar-aria-label" data-v-7f1e9840> Sidebar Navigation </span><!--[--><!--]--><!--[--><div class="no-transition group" data-v-f9ff87c2><section class="VPSidebarItem level-0 has-active" data-v-f9ff87c2 data-v-005337a2><div class="item" role="button" tabindex="0" data-v-005337a2><div class="indicator" data-v-005337a2></div><h2 class="text" data-v-005337a2>博客列表</h2><!----></div><div class="items" data-v-005337a2><!--[--><div class="VPSidebarItem level-1 is-link" data-v-005337a2 data-v-005337a2><div class="item" data-v-005337a2><div class="indicator" data-v-005337a2></div><a class="VPLink link link" href="/markdown-examples.html" data-v-005337a2><!--[--><p class="text" data-v-005337a2>Markdown常见语法</p><!--]--></a><!----></div><!----></div><div class="VPSidebarItem level-1 is-link" data-v-005337a2 data-v-005337a2><div class="item" data-v-005337a2><div class="indicator" data-v-005337a2></div><a class="VPLink link link" href="/about.html" data-v-005337a2><!--[--><p class="text" data-v-005337a2>关于我</p><!--]--></a><!----></div><!----></div><!--]--></div></section></div><!--]--><!--[--><!--]--></nav></aside><div class="VPContent has-sidebar" id="VPContent" data-v-e212a6ea data-v-21a1988a><div class="VPDoc has-sidebar has-aside" data-v-21a1988a data-v-56e6d6f8><!--[--><!--]--><div class="container" data-v-56e6d6f8><div class="aside" data-v-56e6d6f8><div class="aside-curtain" data-v-56e6d6f8></div><div class="aside-container" data-v-56e6d6f8><div class="aside-content" data-v-56e6d6f8><div class="VPDocAside" data-v-56e6d6f8 data-v-d64e1608><!--[--><!--]--><!--[--><!--]--><nav aria-labelledby="doc-outline-aria-label" class="VPDocAsideOutline" data-v-d64e1608 data-v-375f3946><div class="content" data-v-375f3946><div class="outline-marker" data-v-375f3946></div><div aria-level="2" class="outline-title" id="doc-outline-aria-label" role="heading" data-v-375f3946>On this page</div><ul class="VPDocOutlineItem root" data-v-375f3946 data-v-a95f4156><!--[--><!--]--></ul></div></nav><!--[--><!--]--><div class="spacer" data-v-d64e1608></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-56e6d6f8><div class="content-container" data-v-56e6d6f8><!--[--><!--]--><main class="main" data-v-56e6d6f8><div style="position:relative;" class="vp-doc _markdown-examples" data-v-56e6d6f8><div><h1 id="markdown-extension-examples" tabindex="-1">Markdown Extension Examples <a class="header-anchor" href="#markdown-extension-examples" aria-label="Permalink to &quot;Markdown Extension Examples&quot;">​</a></h1><p>This page demonstrates some of the built-in markdown extensions provided by VitePress.</p><h2 id="syntax-highlighting" tabindex="-1">Syntax Highlighting <a class="header-anchor" href="#syntax-highlighting" aria-label="Permalink to &quot;Syntax Highlighting&quot;">​</a></h2><p>VitePress provides Syntax Highlighting powered by <a href="https://github.com/shikijs/shiki" target="_blank" rel="noreferrer">Shiki</a>, with additional features like line-highlighting:</p><p><strong>Input</strong></p><div class="language-md vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">md</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">```js{4}</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">  data</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> () {</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">    return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">      msg: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Highlighted!&#39;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">    }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">  }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">```</span></span></code></pre></div><p><strong>Output</strong></p><div class="language-js vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">js</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">export</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> default</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">  data</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> () {</span></span>
<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">    return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> {</span></span>
<span class="line highlighted"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">      msg: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;Highlighted!&#39;</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">    }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">  }</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">}</span></span></code></pre></div><h2 id="custom-containers" tabindex="-1">Custom Containers <a class="header-anchor" href="#custom-containers" aria-label="Permalink to &quot;Custom Containers&quot;">​</a></h2><p><strong>Input</strong></p><div class="language-md vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">md</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: info</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is an info box.</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: tip</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is a tip.</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: warning</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is a warning.</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: danger</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is a dangerous warning.</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span>
<span class="line"></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">::: details</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">This is a details block.</span></span>
<span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:::</span></span></code></pre></div><p><strong>Output</strong></p><div class="info custom-block"><p class="custom-block-title">INFO</p><p>This is an info box.</p></div><div class="tip custom-block"><p class="custom-block-title">TIP</p><p>This is a tip.</p></div><div class="warning custom-block"><p class="custom-block-title">WARNING</p><p>This is a warning.</p></div><div class="danger custom-block"><p class="custom-block-title">DANGER</p><p>This is a dangerous warning.</p></div><details class="details custom-block"><summary>Details</summary><p>This is a details block.</p></details><h2 id="more" tabindex="-1">More <a class="header-anchor" href="#more" aria-label="Permalink to &quot;More&quot;">​</a></h2><p>Check out the documentation for the <a href="https://vitepress.dev/guide/markdown" target="_blank" rel="noreferrer">full list of markdown extensions</a>.</p></div></div></main><footer class="VPDocFooter" data-v-56e6d6f8 data-v-4d9e65d5><!--[--><!--]--><!----><nav class="prev-next" aria-labelledby="doc-footer-aria-label" data-v-4d9e65d5><span class="visually-hidden" id="doc-footer-aria-label" data-v-4d9e65d5>Pager</span><div class="pager" data-v-4d9e65d5><!----></div><div class="pager" data-v-4d9e65d5><a class="VPLink link pager-link next" href="/about.html" data-v-4d9e65d5><!--[--><span class="desc" data-v-4d9e65d5>Next page</span><span class="title" data-v-4d9e65d5>关于我</span><!--]--></a></div></nav></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><!--]--></div></div>
    <script>window.__VP_HASH_MAP__=JSON.parse("{\"about.md\":\"BMRbqIWC\",\"index.md\":\"DVtVmCoN\",\"markdown-examples.md\":\"CB--4lFV\",\"readme.md\":\"BAxnZJOX\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"我的个人博客网站\",\"description\":\"我的个人博客网站\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"主页\",\"link\":\"/\"},{\"text\":\"博客\",\"link\":\"/markdown-examples\"}],\"sidebar\":[{\"text\":\"博客列表\",\"items\":[{\"text\":\"Markdown常见语法\",\"link\":\"/markdown-examples\"},{\"text\":\"关于我\",\"link\":\"/about\"}]}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/vuejs/vitepress\"}]},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
    
  </body>
</html>